function ArtistList(){
    this.list;
    this.searchArtist=function(id){
        for(var i=0;i<this.list.length;i++){
            if(this.list[i]['id']==id){
                console.log(this.list[i].name);
                return this.list[i];
            }
        }
    }
    this.searchAlbum=function(id){
        for(var a=0;a<this.list.length;a++){
            for(var b=0;b<this.list[a]['albums'].length;b++){
                if(this.list[a]['albums'][b]['id']==id){
                    return this.list[a]['albums'][b];
                }
            }
        }
    }
    this.searchTrack=function(id){
        for(var a=0;a<this.list.length;a++){
            for(var b=0;b<this.list[a]['albums'].length;b++){
                for(var c=0;c<this.list[a]['albums'][b]['tracks'].length;c++){
                    if(this.list[a]['albums'][b]['tracks'][c]['id']==id){
                        return this.list[a]['albums'][b]['tracks'][c];
                    }
                }
            }
        }
    }
    this.searchList=function(){
        var search=new Object;
        var count=0;
        for(var i=0;i<this.list.length;i++){
            if(this.list[i]['search']){
                search[count]=new Object;
                search[count]=this.list[i];
                count++;
            }
        }
        search.length=count;
        return search;
    }
}
